/**
 * Created by hxpeng on 2017/3/24.
 */
(function () {
    'use strict';

    angular.module('App.pages.class')
        .controller('ClassCtrl', ClassCtrl);

    function ClassCtrl($scope,$ionicSlideBoxDelegate) {

        var vm = this;
        $scope.next = function() {
            $ionicSlideBoxDelegate.next();
        };
        $scope.previous = function() {
            $ionicSlideBoxDelegate.previous();
        };
        $scope.slideChanged = function(index) {
            $scope.slideIndex = index;
        };
        $ionicSlideBoxDelegate.loop(true); //解决轮播至最后一个不轮播的问题

    }

})();